package demonTest;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class add implements IAdd{
    @Override
    public int add(String sql, PreparedStatement preparedStatement, Connection connection) throws SQLException {
        preparedStatement=connection.prepareStatement(sql);
        int re=preparedStatement.executeUpdate();
        return re;
    }
}
